﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Plane
{
    public partial class Login_Register : Form
    {
        public Login_Register()
        {
            InitializeComponent();
            UserDbHelper.InitializeDatabase();
            //UserDbHelper.AddUser("2", "222",10000,200,10,0,"111","W","S","A","D","J",50);
            //UserDbHelper.UpdatePassword("2", "3333");
            //UserDbHelper.DeleteUser("2");
        }

        private void button_Login_Click(object sender, EventArgs e)
        {
            Login login = new Login(); 

            login.Show();

            this.Close();
        }

        private void button_Register_Click(object sender, EventArgs e)
        {
            Register register = new Register();

            register.Show();

            this.Close();
        }
    }
}
